<script type="text/javascript" src="manage/security/user/userList.js" charset="utf-8" ></script>
<script type="text/javascript" src="manage/security/program/program.js" charset="utf-8" ></script>
<script type="text/javascript" src="manage/security/role/role.js" charset="utf-8" ></script>
<div id="listUserTab"> 
 	<div title="ccay.security.label.listUser">
		<form id="queryUserForm" class="init ccay-form">
		<!--条件输入区域-->
		<div class="ccay-form-body">
			<ul>	 
				<li class="ccay-form-row">	
					<samp class="init i18n" i18nKey="ccay.common.label.username"/></samp>
					<span class="ccay-form-input">
						<input type="text" id="name" name="name"/>
					</span>		
				</li>
				
			    <li class="ccay-form-row">
					<samp class="init i18n" i18nKey="ccay.common.label.userDisplayName"/></samp>
					<span class="ccay-form-input">
						<input type="text" id="displayName" name="displayName"/>
					</span>	
			    </li>
				<li class="ccay-form-row">	
					<samp class="init i18n" i18nKey="ccay.common.label.email"/></samp>
					<span class="ccay-form-input">
						<input type="text" id="email" name="email"/>
					</span>		
				</li>
				
				<li class="ccay-form-row">	
					<samp class="init i18n" i18nKey="ccay.common.label.phone"/></samp>
					<span class="ccay-form-input">
						<input type="text" id="phone" name="phone"/>
					</span>
				</li>
				
				<li class="ccay-form-row">	
					<samp class="init i18n" i18nKey="ccay.common.label.isValid"/></samp>
					<span class="ccay-form-input">
						<input type="text" id="enabled" name="enabled" class="init ccay-combobox" service="ENUM:EnableEnum"/>
					</span>
				</li>
			
				<li class="ccay-form-row">	
					<samp class="init i18n" i18nKey="ccay.common.label.isDeleted" /></samp>
					<span class="ccay-form-input">
						<input type="text" id="deleted" name="deleted" class="init ccay-combobox" service="ENUM:YesNoEnum"/>
					</span>		
				</li>
				<li class="ccay-form-row">	
						<samp class="init i18n" i18nKey="ccay.common.label.roles"/></samp>
						<span class="ccay-form-input">
							<input type="text" id="roleId" class="init ccay-suggest" name="roleId"/>
						</span>		
				</li>
				<li class="ccay-form-row">	
						<samp class="init i18n" i18nKey="ccay.security.label.datascope"/></samp>
						<span class="ccay-form-input">
							<input type="text" id="programId" name="programId"/>
						</span>		
				</li>
				<li id="morecondition" class="ccay-form-row  ccay-form-more"  style="width:100%;"> 
			  		<a onclick="Ccay.Common.toggle(this,'#programItemSearchId')" i18nKey="ccay.security.label.programDimension" class="i18n"></a>
			 	</li>
				<div id="programItemSearchId" class="ccay-form-custom" style="display:none;"></div>
			</ul>
		</div>
		<div class="ccay-operate">
			<input type="button" class="init i18n" id="btnSearch" i18nKey="ccay.common.button.search">
			<input type="reset" class="init i18n" i18nKey="ccay.common.button.reset">
		</div>
		</form>	
		<!--grid操作区域-->
		<div class="ccay-grid">
			<div class="ccay-toolbar">
		 		<span id="btnAdd" class="ccay-button" onclick="ccay.security.user.list.toEdit()">
					<a class="ccay-icon add"></a>
					<label class="i18n" i18nkey="ccay.common.button.add"></label>
				</span>
			 	<div class="ccay-menubutton init hasPermission" >
					<div class="ccay-menubutton-body">
						<a class="ccay-icon excel"></a>
						<span class="i18n" i18nKey="ccay.common.button.importExport"></span>
					</div>
					<a class="ccay-menubutton-btn" href="javascript:void 0"></a>
					<div class="ccay-menubutton-selector">
						<ul>
							<li class="ccay-menubutton-item hasPermission" onclick="ccay.security.user.list.userImport()">
								<a class="ccay-icon import"></a>
								<span class="i18n" i18nKey="ccay.common.button.import"></span>
							</li>
							<li class="ccay-menubutton-item hasPermission" onclick="ccay.security.user.list.userExport()">
								<a class="ccay-icon export"></a>
								<span class="i18n" i18nKey="ccay.common.button.export"></span>
							</li>
							<li class="ccay-menubutton-item hasPermission" onclick="location.href='servlet/download?dlType=ExcelTemplate&excelType=ccay.security.user'">
								<a class="ccay-icon download"></a>
								<span class="i18n" i18nKey="ccay.common.label.importTemplate"></span>
							</li>
						</ul>
				</div>
			</div>
		</div>
		<!--数据表格-->
		<div id="userGrid"></div>
	</div>
</div>